{include file="public/header" /}

<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>{$Think.lang.inquiry_title}</h3>
            </div>
            {include file="public/admin_items" /}
        </div>
    </div>

    <form method="get" action="" name="formSearch" id="formSearch">
        <!--搜索商品-->
        <div class="ds-search-form">
            <dl>
                <dt>店铺分类名称：</dt>
                <dd><input type="text" value="{$Request.get.inquiry_name|default=''}" name="inquiry_name" id="inquiry_name" class="txt"></dd>
            </dl>
            <div class="btn_group">
                <a href="javascript:void(0);" id="dssubmit" class="btn" title="{$Think.lang.ds_query}">{$Think.lang.ds_query}</a>
                <a href="{:url('Goodinquiry/index')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
                <a href="javascript:dsLayerOpen('{:url('Goodinquiry/inquiry_add')}', '添加分类')" class="btn btu-red">添加分类</a>
            </div>
        </div>
    </form>

    <table class="ds-default-table">
        <thead>
        <tr class="thead">
            <th>店铺名称</th>
            <th>{$Think.lang.created_at}</th>
            <th>{$Think.lang.ds_handle}</th>
        </tr>
        </thead>
        <tbody>
        {notempty name="inquiry_list"}
        {foreach name="inquiry_list" item="v" key="k" }
        <tr class="hover edit" id="ds_row_{$v.id}">
            <td class="">
                <span>{$v.inquiry_name}</span>
                <a class="btn-add-nofloat marginleft" href="javascript:dsLayerOpen('{:url('Goodinquiry/inquiry_station_add',['inquiry_id'=>$v.id])}', '添加工位')">
                    <span>新增工位</span>
                </a>
            </td>
            <td> {$v.created_at} </td>
            <td>
                <a href="javascript:dsLayerOpen('{:url('Goodinquiry/inquiry_add',['id'=>$v.id])}', '编辑分类')" class="dsui-btn-edit">
                    <i class="iconfont"></i>{$Think.lang.ds_edit}
                </a>
                 <a href="javascript:dsLayerConfirm('{:url('Goodinquiry/inquiry_del',['id'=>$v.id])}','{$Think.lang.ds_ensure_del}')" class="dsui-btn-del">
                    <i class="iconfont"></i>删除
                </a>
            </td>
        </tr>
        {/foreach}
        {else /}
        <tr class="no_data">
            <td colspan="10">{$Think.lang.ds_no_record}</td>
        </tr>
        {/notempty}
        </tbody>
    </table>
</div>

<script type="text/javascript" src="{$Think.ADMIN_SITE_ROOT}/js/jquery.edit.js" charset="utf-8"></script>
<script>
    $(function (){
        $('#dssubmit').click(function(){
            $('#formSearch').submit();
        });
    });
</script>